import scrapy


class TcSpider(scrapy.Spider):
    name = "tc"
    allowed_domains = ["zz.58.com"]
    start_urls = ["https://zz.58.com/sou/?key=%E5%89%8D%E7%AB%AF%E5%BC%80%E5%8F%91&classpolicy=uuid_xDj4NwQSTcTPBAaxNzQs2ScbZiDTc6YQ%2Cclassify_B&search_uuid=xDj4NwQSTcTPBAaxNzQs2ScbZiDTc6YQ&search_type=suggest"]

    def parse(self, response):
        # 字符串
        # content = response.text
        # 二进制数据
        content = response.body
        print('='*20)
        print(content)

        span = response.xpath('')
        print('==============')
        print(span.extract())
